﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hp.Vertica.Client.Internal;
using Hp.Vertica.Migration.SqlServer;

namespace Hp.Vertica.Client.ViewModels
{
    public class SqlToVerticaViewModel : INotifyPropertyChanged
    {
        public ObservableCollection<SqlSourceViewModel> SqlSources { get; private set; }
        private VerticaDatabase _verticaSource;
        public VerticaDatabase VerticaSource
        {
            get
            {
                return _verticaSource;
            }
            set
            {
                this._verticaSource = value; this.OnPropertyChanged("VerticaSource");
            }
        }

        public SqlToVerticaViewModel()
        {
            this.SqlSources = new ObservableCollection<SqlSourceViewModel>();
        }

        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
